package backstage.app.mapper;


import java.util.List;

import org.springframework.stereotype.Repository;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import backstage.app.entity.Constitution;
 
@Repository
public interface ConstitutionMapper extends BaseMapper<Constitution>{
   
	int deleteByPrimaryKeySid(Integer sid);

    int deleteByPrimaryKey(Integer cid);
 
    int insertSelective(Constitution constitution);

    int selectByCpIdByCount(int cpId);
    
    
    
    Constitution selectByPrimaryKey(Integer cid);

   List<Constitution> selectBySid(Integer sid );
   
   Constitution selectByCpId(Integer cpId);
   
   int updateByPrimaryKeyDENot(Constitution constitution);
   
    int updateByPrimaryKey(Constitution constitution);
}